FROM openjdk:17-jdk-alpine

RUN apk --no-cache add curl

CMD java ${JAVA_OPTS} -jar docker-demo.jar
#HEALTHCHECK --start-period=30s --interval=5s CMD
#    curl http://localhost:8080/actuator/health || exit 1

COPY target/docker-demo.jar .